﻿using System.Windows;
using System.Windows.Controls;

namespace ElectricalSymbols
{
	public class CanOpenUserControl : UserControl
	{
		// 定义 OpenProperty 依赖属性
		public static readonly DependencyProperty OpenProperty =
			DependencyProperty.Register(
				"Open",
				typeof(bool?),
				typeof(CanOpenUserControl),
				new PropertyMetadata(null));

		// CLR 包装器
		public bool? Open
		{
			get => (bool?)GetValue(OpenProperty);
			set => SetValue(OpenProperty, value);
		}
	}
}
